Firstly, preprocessing PET and CT images by simple segmentation, and then use template matching based on the correlation image detection method to identify the markers 'corresponding coordinates, next, a rigid transform matrix is gotten to register PET and CT images accurately. 首先对图像进行简单分割的预处理,然后运用基于模版匹配的相关检测法识别图像中用于配准的标记点的相应坐标,接着利用这些对应点的坐标计算刚体变换的矩阵,实现图像的精确配准。